//import { createPinia } from "pinia";
import { defineStore } from "pinia";
import { ref } from "vue";
// export const pinia = createPinia();

export const userLoadingStore = defineStore("loading", () => {
  const loading = ref(false);
  function setLoading(val) {
    loading.value = val;
  }
  return { loading, setLoading };
});

export const userMenuStroe = defineStore(
  "menu",
  () => {
    const menu = ref([]);
    function setMenu(val) {
      menu.value = val;
    }
    return { menu, setMenu };
  },
  { persist: true }
);
